﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using System.Net;
using System.IO;

namespace GroundStation.Models
{
    public class SocketSingleton
    {
        // This class represents the TCP socket between that will be openeed between the Workstation and TowerTop. Messages will be sent and received by both subsystems.
        private static TcpClient _tcpClient = new TcpClient(Properties.Settings.Default.UserIP, 1987);
        private static StreamWriter _streamWriter = new StreamWriter(_tcpClient.GetStream());
        public static StreamWriter messageStream
        {
            get
            {
                return _streamWriter;
            }
        }
        public static TcpClient messageClient
        {

            get
            {
                
                return _tcpClient;
            }

        }
    }
}
